﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using ESRI.ArcGIS.ArcMapUI;
using System.Windows.Forms;


namespace ODM_AddIn
{
    public class WriteGoogleEarthButton : ESRI.ArcGIS.Desktop.AddIns.Button
    {
        public WriteGoogleEarthButton()
        {
        }

        protected override void OnClick()
        {
            IMxDocument doc = ArcMap.Application.Document as IMxDocument;
            ODM_Code.Forms.WriteGoogleEarthForm2 wgef = new ODM_Code.Forms.WriteGoogleEarthForm2(doc);
            wgef.ShowDialog();
            wgef.Activate();
            wgef.BringToFront();
            //MessageBox.Show("Under development.", "Google Earth Export");
        }

        protected override void OnUpdate()
        {
        }
    }
}
